package com.smmisia.shop.param;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;


@Data
@Getter
@Setter
public class BuyParam {

    @NotNull(message = "商品ID不能为空")
    private String productId;

    @Min(value = 1,message = "商品数量不能小于1")
    @NotNull(message = "商品数量不能为空")
    private Integer itemCount;
}
